<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<html>
<head>
    <title>商品列表</title>
    <style>
        html{
            width: 100%;
            height: 100%;
        }
        body{
            margin-top:0px;
            width: 100%;
            height: 100%;
        }
        .main-container{
            margin:0px auto;
            width: 90%;
            border: 1px solid red;

        }

        .top-container{
            width: 100%;
            height: 100px;
            background-color: coral;
            display: flex;
        }

        .top-container .title{
            width:60%;
            height: 100px;
            line-height: 100px;
            text-align: center;
            font-family: "宋体";
            font-size: 60px;
            font-weight: bold;
            color: #ffffff;
        }
        .top-container .persion{
            width: 40%;
            height: 100px;
            line-height: 100px;
            text-align: center;
        }
        .top-container .persion a:link{
            text-decoration: none;
            font-size: 20px;
            font-weight: bold;
            color: cornflowerblue;
            letter-spacing: 5px;
        }



        .top-container .persion a:visited{
            text-decoration: none;
            font-size: 20px;
            font-weight: bold;
            color: cornflowerblue;
            letter-spacing: 5px;
        }

        .top-container .persion a:hover{
            text-decoration: none;
            font-size: 20px;
            font-weight: bold;
            color: red;
            letter-spacing: 5px;
        }

        .eatContainer{
            width: 60%;
            margin: 0px auto;
            border: 1px solid red;
        }
        .bottom-container{
            width: 100%;
            height: 100px;
            background-color: cornflowerblue;
        }

        .eatBaseInfo{
            margin: 10px auto;
            width: 100%;
            display: flex;
        }

        .eatImage img{
            width: 300px;
            height: 180px;
        }
        .eatBaseInfo .eatInfo{
            padding-left: 20px;
        }
        .bottom-car{
            display: flex;
            margin:5px;
        }
        .bottom-car div{
            margin-left: 5px;
        }
        .bottom-car .car-num{
            border: 0px solid red;
        }
        .bottom-car .car-num button{

            width: 30px;
            height: 30px;
            text-align: center;
            line-height: 20px;
        }
        .bottom-car .car-num input{
            text-align: center;
            margin-top: -3px;
            width: 30px;
            height: 30px;
        }
        .btn-car button{

            height: 30px;
        }

        .eatDesc .desc{
            width: 100%;
            box-sizing: border-box;
            height: 40px;
            line-height: 40px;
            background-color: cornflowerblue;
            color: #ffffff;
            font-family: "宋体";
            font-size: 18px;
            font-weight: bold;
            padding-left: 10px;
        }
        .eatDesc .eatDescContent{
            margin: 10px auto;
            text-indent:30px;
            letter-spacing: 3px;
            line-height: 25px;
        }



    </style>
</head>
<body>
<div class="main-container">
    <div class="top-container"></div>
    <div class="eatContainer">
        <div class="eatBaseInfo">
            <div class="eatImage">
                <img src="images/eat/${requestScope.eat.eat_image}">
            </div>
            <div class="eatInfo">
                <p>菜名:<span style="color: coral">${requestScope.eat.eat_name}</span></p>
                <p>单价:<span style="color: red">¥${requestScope.eat.eat_price}</span></p>
                <div class="bottom-car">
                    <div class="car-num">
                        <button>-</button>
                        <input type="text" name="num" value="1" size="1"/>
                        <button>+</button>
                    </div>
                    <div class="btn-car">
                        <button>加入购物车</button>
                    </div>

                </div>
            </div>
        </div>
        <div class="eatDesc">
            <div class="desc">
                菜品详情
            </div>
            <div class="eatDescContent">
                ${requestScope.eat.eat_desc}
            </div>
        </div>

    </div>
    <div class="bottom-container"></div>
</div>
</body>
</html>
